package cn.iocoder.yudao.module.pm.controller.app.thawrecords.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "用户 APP - 过程管理-解冻专项台账新增/修改 Request VO")
@Data
public class AppThawRecordsSaveReqVO {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "解冻台账编号")
    private String thawCode;

    @Schema(description = "食品种类",requiredMode = Schema.RequiredMode.REQUIRED)
    private String foodName;

    @Schema(description = "解冻开始时间",requiredMode = Schema.RequiredMode.REQUIRED, example = "1755333518000")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime startTime;

    @Schema(description = "解冻结束时间",requiredMode = Schema.RequiredMode.REQUIRED, example = "1755333518000")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;

    @Schema(description = "食品开始温度",requiredMode = Schema.RequiredMode.REQUIRED)
    private String initTemp;

    @Schema(description = "食品最终温度",requiredMode = Schema.RequiredMode.REQUIRED)
    private String finalTemp;

}